package com.qf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * @author fy
 * @version V1.0
 * @Project workspace
 * @Package com.qf
 * @Description:
 * @Date 2022/7/6 17:24
 */
@SpringBootApplication
@EnableEurekaClient
//开启hystrix熔断器
@EnableCircuitBreaker
//开启断路器监控
@EnableHystrixDashboard
//扫描hystrix的servlet所在包
@ServletComponentScan("com.qf.servlet")
public class SearchApplication {
    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class, args);
    }
}
